<%@include file="/WEB-INF/jsp/global/include.jsp" %>

<%
	String contextPath=session.getServletContext().getContextPath();
%>

<html>
	<head>
	
		<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> 
		<META HTTP-EQUIV="Expires" CONTENT="-1">

		<script type="text/javascript" >
		        var contextPath = "<%=contextPath%>";
		        
		</script>

		<title></title>
                 
        <!-- CSS Cofiroute -->
		<link rel="stylesheet" type="text/css" href="<%=contextPath%>/css/cofiroute.css" media="all" />
	
		<!-- Fichiers de style pour Ext-JS -->
	
		<link rel="stylesheet" type="text/css" href="<%=session.getServletContext().getContextPath()%>/ext-3.2.1/resources/css/ext-all-cof-gris.css" /> 
		<link rel="stylesheet" type="text/css" href="<%=session.getServletContext().getContextPath()%>/ext-3.2.1/resources/css/xtheme-cof-gris.css" />
	 

	    <!-- Fichiers javascript Ext-JS -->

		<script src="<%=contextPath%>/ext-3.2.1/adapter/ext/ext-base.js"></script>
		<script src="<%=contextPath%>/ext-3.2.1/ext-all-debug-w-comments.js"></script>
		<script src="<%=contextPath%>/js/ext-extension/locale/ext-lang-fr.js"></script>
		
		
		<script type="text/javascript">
			// referencer localement l image blanche
			Ext.BLANK_IMAGE_URL = "<%=contextPath%>/ext-3.2.1/resources/images/default/s.gif";

			Ext.QuickTips.init();

			//formatage pour la monaie euro
			 Ext.util.Format.euMoney = function(v)
			 {
			   v = (Math.round((v-0)*100))/100;
			   v = (v == Math.floor(v)) ? v + ".00" : ((v*10 == Math.floor(v*10)) ? v + "0" : v);
			   return (v+" &euro;").replace(/\./, ",");
			 };


			 var lienAccueil=contextPath+"/accueil/ouvrir.action";


			 var tplFileAriane = new Ext.Template(
			 		  '<a href="'+lienAccueil+'">Accueil </a>{pile}'
			 );
			 tplFileAriane.compile();
				
		</script>
		<script src="<%=contextPath%>/js/common/common.js"></script>
		<script src="<%=contextPath%>/js/common/windowErreurs.js"></script>						
		<tiles:insertAttribute name="javascriptDebutPage"/>

	</head>

	<body style="min-height: 768px;min-width:1024px; overflow: auto;" >
		    <div id="idLoadMask"></div>
		    <div  id="page">
				<div id="entete" style="min-width:1024px;">
				      <tiles:insertAttribute name="header" />
				</div>
				<div id="profilsActions" style="clear:left;margin:0;min-height: 20px;min-width:1024px;">
				      <tiles:insertAttribute name="profilsActions" />
				</div>
				<div id="menuHorizontal" style="clear:left;">
				      <tiles:insertAttribute name="menuHorizontal" />
				</div>
                <tiles:insertAttribute name="ariane"/>
				<div id="conteneur" style="margin:0;">
				      <tiles:insertAttribute name="body" />
				</div>
				<div id="footer" >
				      <tiles:insertAttribute name="footer" />
				</div>
		    </div>

			<div id="hello-win" class="x-hidden" >
			    <div class="x-window-header" style="color:red;">Detail des erreurs</div>
			    <div class="x-window-body">
				    <div id="hello-tabs" style="background-color:#d9e8fb">
				    <!-- #d9e8fb  #F0F8FF -->
					    <ul id="erreur" style="margin-left: 1em;">

					    </ul>
				    </div> 
			    </div>
			    
			</div>		    
	</body>
	
	<tiles:insertAttribute name="javascriptFinPage"/>
</html>
